With Restore Credentials, apps can seamlessly onboard users to their accounts on a new device after they restore their apps and data from their previous device.
Back up content, data, and settings from your old phone with Drive. When you sign in to your Google Account on your new phone, your data will be restored.
On your new device, open Settings > Accounts and Backup > Bring data from old device. Tap Agree > Allow > Receive data > Galaxy/Android.